summaryrefslogtreecommitdiff
path: root/fs/nfs/nfsroot.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@osandov.com>2015-01-08 12:18:30 +0300
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-01-31 04:43:29 +0300
commit3a7ed3fff3bb22828f7d7ba6b75c7d22ee54df38 (patch)
treecb80dba1908b48a6b552ed2b0eaa271f3296582c /fs/nfs/nfsroot.c
parent6ffa30d3f734d4f6b478081dfc09592021028f90 (diff)
downloadlinux-3a7ed3fff3bb22828f7d7ba6b75c7d22ee54df38.tar.xz
nfs: prevent truncate on active swapfile
Most filesystems prevent truncation of an active swapfile by way of inode_newsize_ok, called from inode_change_ok. NFS doesn't call either from nfs_setattr, presumably because most of these checks are expected to be done server-side. However, the IS_SWAPFILE check can only be done client-side, and truncating a swapfile can't possibly be good. Signed-off-by: Omar Sandoval <osandov@osandov.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfsroot.c')
0 files changed, 0 insertions, 0 deletions