aboutsummaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu> 2009-04-14 19:48:41 +0200
committerGravatar Jens Axboe <jens.axboe@oracle.com> 2009-04-15 12:10:12 +0200
commit61e0d47c33cc371f725bcda4a47ae0efe652dba8 (patch)
treee00f99b506f1c1a16e3ba987e3390deda6bd2e03 /firmware
parentsplice: remove generic_file_splice_write_nolock() (diff)
downloadlinux-61e0d47c33cc371f725bcda4a47ae0efe652dba8.tar.gz
linux-61e0d47c33cc371f725bcda4a47ae0efe652dba8.tar.bz2
linux-61e0d47c33cc371f725bcda4a47ae0efe652dba8.zip
splice: add helpers for locking pipe inode
There are lots of sequences like this, especially in splice code: if (pipe->inode) mutex_lock(&pipe->inode->i_mutex); /* do something */ if (pipe->inode) mutex_unlock(&pipe->inode->i_mutex); so introduce helpers which do the conditional locking and unlocking. Also replace the inode_double_lock() call with a pipe_double_lock() helper to avoid spreading the use of this functionality beyond the pipe code. This patch is just a cleanup, and should cause no behavioral changes. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions