diff options
author | 2015-01-08 01:18:30 -0800 | |
---|---|---|
committer | 2015-01-30 20:43:29 -0500 | |
commit | 3a7ed3fff3bb22828f7d7ba6b75c7d22ee54df38 (patch) | |
tree | cb80dba1908b48a6b552ed2b0eaa271f3296582c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | nfs: don't call blocking operations while !TASK_RUNNING (diff) | |
download | wireguard-linux-3a7ed3fff3bb22828f7d7ba6b75c7d22ee54df38.tar.xz wireguard-linux-3a7ed3fff3bb22828f7d7ba6b75c7d22ee54df38.zip |
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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions