/* * Copyright IBM Corporation, 2010 * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2.1 of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * */ #ifndef FS_9P_ACL_H #define FS_9P_ACL_H #ifdef CONFIG_9P_FS_POSIX_ACL extern int v9fs_get_acl(struct inode *, struct p9_fid *); extern struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type); extern int v9fs_acl_chmod(struct inode *, struct p9_fid *); extern int v9fs_set_create_acl(struct inode *, struct p9_fid *, struct posix_acl *, struct posix_acl *); extern int v9fs_acl_mode(struct inode *dir, umode_t *modep, struct posix_acl **dpacl, struct posix_acl **pacl); extern void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl); #else #define v9fs_iop_get_acl NULL static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid) { return 0; } static inline int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid) { return 0; } static inline int v9fs_set_create_acl(struct inode *inode, struct p9_fid *fid, struct posix_acl *dacl, struct posix_acl *acl) { return 0; } static inline void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl) { } static inline int v9fs_acl_mode(struct inode *dir, umode_t *modep, struct posix_acl **dpacl, struct posix_acl **pacl) { return 0; } #endif #endif /* FS_9P_XATTR_H */ d5aeca52445d1f5627c4ba'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/pmu/Makefile'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/testing/selftests/powerpc/pmu/Makefile?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/powerpc/pmu/Makefile?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/powerpc/pmu/Makefile?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/pmu/Makefile'> <input type='hidden' name='id' value='0b3589be9b98994ce3d5aeca52445d1f5627c4ba'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/testing?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>testing</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>selftests</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/powerpc?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>powerpc</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/powerpc/pmu?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>pmu</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/powerpc/pmu/Makefile?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>Makefile</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='0b3589be9b98994ce3d5aeca52445d1f5627c4ba'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td>Peter Zijlstra <peterz@infradead.org></td><td class='right'>2017-01-26 23:15:08 +0100</td></tr> <tr><th>committer</th><td>Ingo Molnar <mingo@kernel.org></td><td class='right'>2017-01-30 11:41:26 +0100</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/powerpc/pmu/Makefile?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>0b3589be9b98994ce3d5aeca52445d1f5627c4ba</a> (<a href='/cgit.cgi/linux/net-next.git/patch/tools/testing/selftests/powerpc/pmu/Makefile?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>85d0d9b3ac902af2c938b19a566884caf8d00323</a> /<a href='/cgit.cgi/linux/net-next.git/tree/tools/testing/selftests/powerpc/pmu/Makefile?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>tools/testing/selftests/powerpc/pmu/Makefile</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/tools/testing/selftests/powerpc/pmu/Makefile?id=a76a82a3e38c8d3fb6499e3dfaeb0949241ab588'>a76a82a3e38c8d3fb6499e3dfaeb0949241ab588</a> (<a href='/cgit.cgi/linux/net-next.git/diff/tools/testing/selftests/powerpc/pmu/Makefile?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba&id2=a76a82a3e38c8d3fb6499e3dfaeb0949241ab588'>diff</a>)</td></tr></table> <div class='commit-subject'>perf/core: Fix PERF_RECORD_MMAP2 prot/flags for anonymous memory</div><div class='commit-msg'>Andres reported that MMAP2 records for anonymous memory always have their protection field 0. Turns out, someone daft put the prot/flags generation code in the file branch, leaving them unset for anonymous memory. Reported-by: Andres Freund <andres@anarazel.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Don Zickus <dzickus@redhat.com Cc: Jiri Olsa <jolsa@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@gmail.com> Cc: Stephane Eranian <eranian@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: acme@kernel.org Cc: anton@ozlabs.org Cc: namhyung@kernel.org Cc: stable@vger.kernel.org # v3.16+ Fixes: f972eb63b100 ("perf: Pass protection and flags bits through mmap2 interface") Link: http://lkml.kernel.org/r/20170126221508.GF6536@twins.programming.kicks-ass.net Signed-off-by: Ingo Molnar <mingo@kernel.org> </div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=0b3589be9b98994ce3d5aeca52445d1f5627c4ba'>Diffstat</a> (limited to 'tools/testing/selftests/powerpc/pmu/Makefile')</div><table summary='diffstat' class='diffstat'>