Skip to contentSkip to conversation

gfs2: remove unused flags parameter

PATCH In review Fabian Frederick 1 participant 1 message May 3, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 gfs2: remove unused flags parameter

We already assumed rename flags when calling gfs2_exchange()

---
 fs/gfs2/inode.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
fs/gfs2/inode.c +2 -4
index 9698796..b5858a3 100644
@@ -1567,14 +1567,12 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry,
  * @odentry: The old dentry of the file
  * @ndir: Parent directory of new file name
  * @ndentry: The new dentry of the file
- * @flags: The rename flags
  *
  * Returns: errno
  */
 
 static int gfs2_exchange(struct inode *odir, struct dentry *odentry,
-			 struct inode *ndir, struct dentry *ndentry,
-			 unsigned int flags)
+			 struct inode *ndir, struct dentry *ndentry)
 {
 	struct gfs2_inode *odip = GFS2_I(odir);
 	struct gfs2_inode *ndip = GFS2_I(ndir);
@@ -1710,7 +1708,7 @@ static int gfs2_rename2(struct inode *odir, struct dentry *odentry,
 		return -EINVAL;
 
 	if (flags & RENAME_EXCHANGE)
-		return gfs2_exchange(odir, odentry, ndir, ndentry, flags);
+		return gfs2_exchange(odir, odentry, ndir, ndentry);
 
 	return gfs2_rename(odir, odentry, ndir, ndentry);
 }
Signature · 1 line
2.9.3