diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-26 17:38:49 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-07-27 13:36:17 +0200 |
commit | 087498eea02acae08627e310d58ec837a54752d7 (patch) | |
tree | 257ba8e7a78d04d9cf6283b271520724bfa19e1f /fs/ntfs | |
parent | 7715da0b24745db15637f9d380f65386e3d9478b (diff) | |
download | lwn-087498eea02acae08627e310d58ec837a54752d7.tar.gz lwn-087498eea02acae08627e310d58ec837a54752d7.zip |
fs: Convert i_alloc_sem to rw_anon_semaphore
i_alloc_sem is used as a completion in direct-io which does not follow
owner rules. preempt-rt needs to keep it as such. So convert it to
rw_anon_semaphore and annotate the semantics hereby.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/ntfs')
-rw-r--r-- | fs/ntfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index 3140a4429af1..9f07b9c44a17 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c @@ -1845,9 +1845,9 @@ static ssize_t ntfs_file_buffered_write(struct kiocb *iocb, * fails again. */ if (unlikely(NInoTruncateFailed(ni))) { - down_write(&vi->i_alloc_sem); + anon_down_write(&vi->i_alloc_sem); err = ntfs_truncate(vi); - up_write(&vi->i_alloc_sem); + anon_up_write(&vi->i_alloc_sem); if (err || NInoTruncateFailed(ni)) { if (!err) err = -EIO; |