[PATCH 3/4] stop re-checking permissions in xfs_swapext
xfs_swapext should simplify check if we have a writeable file descriptor
instead of re-checking the permissions using xfs_iaccess. Add an
additional check to refuse O_APPEND file descriptors because swapext is
not an append-only write operation.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Date: Fri Jan 18 16:12:16 AEDT 2008
Workarea: redback.melbourne.sgi.com:/home/lachlan/isms/2.6.x-hch
Inspected by: Christoph Hellwig <hch@xxxxxx>
Author: lachlan
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:30369a
fs/xfs/xfs_dfrag.c - 1.65 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_dfrag.c.diff?r1=text&tr1=1.65&r2=text&tr2=1.64&f=h
- stop re-checking permissions in xfs_swapext
|