OpenCloudOS-Kernel/fs/nfs
Omar Sandoval 3a7ed3fff3 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>
2015-01-30 20:43:29 -05:00
..
blocklayout Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-12-10 16:10:49 -08:00
filelayout NFS: Deletion of unnecessary checks before the function call "nfs_put_client" 2014-11-24 20:07:27 -05:00
objlayout Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd 2014-10-21 12:53:45 -07:00
Kconfig
Makefile
cache_lib.c
cache_lib.h
callback.c nfs: don't call blocking operations while !TASK_RUNNING 2015-01-30 20:39:50 -05:00
callback.h
callback_proc.c NFS: fix subtle change in COMMIT behavior 2014-11-24 17:00:42 -05:00
callback_xdr.c
client.c
delegation.c NFSv4: Deal with atomic upgrades of an existing delegation 2015-01-24 18:46:51 -05:00
delegation.h NFSv4: Fix races between nfs_remove_bad_delegation() and delegation return 2014-11-12 17:19:04 -05:00
dir.c Merge branch 'iov_iter' into for-next 2014-12-08 20:39:29 -05:00
direct.c nfs: fix dio deadlock when O_DIRECT flag is flipped 2015-01-21 17:10:08 -05:00
dns_resolve.c
dns_resolve.h
file.c Merge branch 'for-3.18/core' of git://git.kernel.dk/linux-block 2014-10-18 11:53:51 -07:00
fscache-index.c
fscache.c nfs: define nfs_inc_fscache_stats and using it as possible 2014-11-24 20:08:47 -05:00
fscache.h
getroot.c switch d_materialise_unique() users to d_splice_alias() 2014-11-19 13:01:20 -05:00
idmap.c
inode.c nfs: prevent truncate on active swapfile 2015-01-30 20:43:29 -05:00
internal.h NFS: Fix use of nfs_attr_use_mounted_on_fileid() 2015-01-21 17:15:41 -05:00
iostat.h nfs: define nfs_inc_fscache_stats and using it as possible 2014-11-24 20:08:47 -05:00
mount_clnt.c
namespace.c
netns.h pnfs/blocklayout: serialize GETDEVICEINFO calls 2014-11-12 14:22:52 -05:00
nfs.h
nfs2super.c
nfs2xdr.c
nfs3_fs.h
nfs3acl.c
nfs3client.c
nfs3proc.c
nfs3super.c
nfs3xdr.c
nfs4_fs.h NFSv4.1: Allow parallel OPEN/OPEN_DOWNGRADE/CLOSE 2015-01-23 23:06:45 -05:00
nfs4client.c NFSv4.1: Fix an Oops in nfs41_walk_client_list 2015-01-21 17:10:09 -05:00
nfs4file.c nfs: Add DEALLOCATE support 2014-11-25 16:38:32 -05:00
nfs4getroot.c
nfs4namespace.c
nfs4proc.c NFSv4.1: Optimise layout return-on-close 2015-01-24 18:46:48 -05:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c NFSv4: Check for NULL argument in nfs_*_seqid() functions 2015-01-23 23:06:45 -05:00
nfs4super.c
nfs4sysctl.c
nfs4trace.c
nfs4trace.h
nfs4xdr.c NFSv4.1: Replace usage of nfs_client->cl_addr in encode_create_session 2015-01-24 18:46:50 -05:00
nfs42.h nfs: Add DEALLOCATE support 2014-11-25 16:38:32 -05:00
nfs42proc.c nfs: Add DEALLOCATE support 2014-11-25 16:38:32 -05:00
nfs42xdr.c nfs: Add DEALLOCATE support 2014-11-25 16:38:32 -05:00
nfsroot.c
nfstrace.c
nfstrace.h
pagelist.c NFS: fix subtle change in COMMIT behavior 2014-11-24 17:00:42 -05:00
pnfs.c NFSv4.1: Optimise layout return-on-close 2015-01-24 18:46:48 -05:00
pnfs.h NFSv4.1: Optimise layout return-on-close 2015-01-24 18:46:48 -05:00
pnfs_dev.c
proc.c
read.c nfs: replace nfs_add_stats with nfs_inc_stats when add one 2014-11-24 20:08:47 -05:00
super.c
symlink.c
sysctl.c
unlink.c
write.c nfs: replace nfs_add_stats with nfs_inc_stats when add one 2014-11-24 20:08:47 -05:00