drop unused dentry argument to ->fsync
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:

committed by
Al Viro

parent
cc967be547
commit
7ea8085910
@@ -1527,10 +1527,9 @@ static int ntfs_dir_open(struct inode *vi, struct file *filp)
|
||||
* this problem for now. We do write the $BITMAP attribute if it is present
|
||||
* which is the important one for a directory so things are not too bad.
|
||||
*/
|
||||
static int ntfs_dir_fsync(struct file *filp, struct dentry *dentry,
|
||||
int datasync)
|
||||
static int ntfs_dir_fsync(struct file *filp, int datasync)
|
||||
{
|
||||
struct inode *bmp_vi, *vi = dentry->d_inode;
|
||||
struct inode *bmp_vi, *vi = filp->f_mapping->host;
|
||||
int err, ret;
|
||||
ntfs_attr na;
|
||||
|
||||
|
@@ -2133,7 +2133,6 @@ static ssize_t ntfs_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
|
||||
/**
|
||||
* ntfs_file_fsync - sync a file to disk
|
||||
* @filp: file to be synced
|
||||
* @dentry: dentry describing the file to sync
|
||||
* @datasync: if non-zero only flush user data and not metadata
|
||||
*
|
||||
* Data integrity sync of a file to disk. Used for fsync, fdatasync, and msync
|
||||
@@ -2149,19 +2148,15 @@ static ssize_t ntfs_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
|
||||
* Also, if @datasync is true, we do not wait on the inode to be written out
|
||||
* but we always wait on the page cache pages to be written out.
|
||||
*
|
||||
* Note: In the past @filp could be NULL so we ignore it as we don't need it
|
||||
* anyway.
|
||||
*
|
||||
* Locking: Caller must hold i_mutex on the inode.
|
||||
*
|
||||
* TODO: We should probably also write all attribute/index inodes associated
|
||||
* with this inode but since we have no simple way of getting to them we ignore
|
||||
* this problem for now.
|
||||
*/
|
||||
static int ntfs_file_fsync(struct file *filp, struct dentry *dentry,
|
||||
int datasync)
|
||||
static int ntfs_file_fsync(struct file *filp, int datasync)
|
||||
{
|
||||
struct inode *vi = dentry->d_inode;
|
||||
struct inode *vi = filp->f_mapping->host;
|
||||
int err, ret = 0;
|
||||
|
||||
ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);
|
||||
|
Reference in New Issue
Block a user