projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e98d49
)
ocfs2: Silence unused warning.
author
Joel Becker
<joel.becker@oracle.com>
Wed, 15 Sep 2010 23:56:54 +0000
(16:56 -0700)
committer
Joel Becker
<joel.becker@oracle.com>
Wed, 15 Sep 2010 23:56:54 +0000
(16:56 -0700)
When CONFIG_OCFS2_DEBUG_MASKLOG is undefined, we don't use the dentry
variable in ocfs2_sync_file(). Let's just move all access to the dentry
inside the logging call.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/file.c
b/fs/ocfs2/file.c
index 9a74542e1a057904ef1108a5628f9b808f0847a1..13af9937bdda15ede9c9e9a42c8eaa3e59964806 100644
(file)
--- a/
fs/ocfs2/file.c
+++ b/
fs/ocfs2/file.c
@@
-174,12
+174,12
@@
static int ocfs2_sync_file(struct file *file, int datasync)
{
int err = 0;
journal_t *journal;
- struct dentry *dentry = file->f_path.dentry;
struct inode *inode = file->f_mapping->host;
struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
- mlog_entry("(0x%p, 0x%p, %d, '%.*s')\n", file, dentry, datasync,
- dentry->d_name.len, dentry->d_name.name);
+ mlog_entry("(0x%p, %d, 0x%p, '%.*s')\n", file, datasync,
+ file->f_path.dentry, file->f_path.dentry->d_name.len,
+ file->f_path.dentry->d_name.name);
if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) {
/*