xfs
[Top] [All Lists]

TAKE 971186 - [PATCH 3/4] stop re-checking permissions in xfs_swapext

To: sgi.bugs.xfs@xxxxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: TAKE 971186 - [PATCH 3/4] stop re-checking permissions in xfs_swapext
From: lachlan@xxxxxxx (Lachlan McIlroy)
Date: Fri, 18 Jan 2008 16:13:01 +1100 (EST)
Sender: xfs-bounce@xxxxxxxxxxx
[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




<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 971186 - [PATCH 3/4] stop re-checking permissions in xfs_swapext, Lachlan McIlroy <=