summaryrefslogtreecommitdiff
path: root/net/netlabel
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-05-21 17:10:02 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-06-28 10:57:53 -0700
commita9e9dc22d216c829c3dc20539ad3bf6b58dad316 (patch)
treeaf58eca4e7d54c33e12ea0d787c0ff1b0f756a11 /net/netlabel
parent6f90c4ae9df52ba1db7caefca342ab4248977956 (diff)
vfs: flush and wait for io when setting the immutable flag via FSSETXATTR
When we're using FS_IOC_FSSETXATTR to set the immutable flag on a file, we need to ensure that userspace can't continue to write the file after the file becomes immutable. To make that happen, we have to flush all the dirty pagecache pages to disk to ensure that we can fail a page fault on a mmap'd region, wait for pending directio to complete, and hope the caller locked out any new writes by holding the inode lock. XFS has more complex locking than other FSSETXATTR implementations so we have to keep the checking and preparation code in different functions. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'net/netlabel')
0 files changed, 0 insertions, 0 deletions