Skip to contentSkip to conversation

CIFS: Remove some obsolete comments

PATCH In review Steve French 2 participants 2 messages May 19, 2016 1 message not in the archive

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

PATCH 1/1 CIFS: Remove some obsolete comments

Remove some obsolete comments in the cifs inode_operations structs that were pointed out by Stephen Rothwell.

---
 fs/cifs/cifsfs.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
fs/cifs/cifsfs.c +1 -6
index 67f622d..5d8b7ed 100644
@@ -890,7 +890,6 @@ const struct inode_operations cifs_dir_inode_ops = {
 	.rmdir = cifs_rmdir,
 	.rename2 = cifs_rename2,
 	.permission = cifs_permission,
-/*	revalidate:cifs_revalidate,   */
 	.setattr = cifs_setattr,
 	.symlink = cifs_symlink,
 	.mknod   = cifs_mknod,
@@ -901,9 +900,8 @@ const struct inode_operations cifs_dir_inode_ops = {
 };
 
 const struct inode_operations cifs_file_inode_ops = {
-/*	revalidate:cifs_revalidate, */
 	.setattr = cifs_setattr,
-	.getattr = cifs_getattr, /* do we need this anymore? */
+	.getattr = cifs_getattr,
 	.permission = cifs_permission,
 	.setxattr = generic_setxattr,
 	.getxattr = generic_getxattr,
@@ -915,9 +913,6 @@ const struct inode_operations cifs_symlink_inode_ops = {
 	.readlink = generic_readlink,
 	.get_link = cifs_get_link,
 	.permission = cifs_permission,
-	/* BB add the following two eventually */
-	/* revalidate: cifs_revalidate,
-	   setattr:    cifs_notify_change, *//* BB do we need notify change */
 	.setxattr = generic_setxattr,
 	.getxattr = generic_getxattr,
 	.listxattr = cifs_listxattr,
Signature · 1 line
1.9.1
Acked-by
#2 lore raw
In reply to a message not in the archive
Quoted 6 lines · Steve French

Remove some obsolete comments in the cifs inode_operations structs that were pointed out by Stephen Rothwell.

Quoted 41 lines

---
 fs/cifs/cifsfs.c | 7 +------

 1 file changed, 1 insertion(+), 6 deletions(-)
fs/cifs/cifsfs.c +0 -1
index 67f622d..5d8b7ed 100644
@@ -890,7 +890,6 @@ const struct inode_operations cifs_dir_inode_ops
 = {
  	.rmdir = cifs_rmdir,
  	.rename2 = cifs_rename2,
  	.permission = cifs_permission,
-/*	revalidate:cifs_revalidate,   */
  	.setattr = cifs_setattr,
  	.symlink = cifs_symlink,

  .mknod   = cifs_mknod,

fs/cifs/cifsfs.c +0 -0
@@ -901,9 +900,8 @@ const struct inode_operations cifs_dir_inode_ops
 = {
  };


 const struct inode_operations cifs_file_inode_ops = {
-/* revalidate:cifs_revalidate, */
  .setattr = cifs_setattr,

fs/cifs/cifsfs.c +1 -1
-	.getattr = cifs_getattr, /* do we need this anymore? */
+	.getattr = cifs_getattr,

  .permission = cifs_permission,
  .setxattr = generic_setxattr,
  .getxattr = generic_getxattr,

fs/cifs/cifsfs.c +0 -3
@@ -915,9 +913,6 @@ const struct inode_operations
 cifs_symlink_inode_ops = {
  	.readlink = generic_readlink,
  	.get_link = cifs_get_link,
  	.permission = cifs_permission,
-	/* BB add the following two eventually */
-	/* revalidate: cifs_revalidate,
-	   setattr:    cifs_notify_change, *//* BB do we need notify

change */
  .setxattr = generic_setxattr,
  .getxattr = generic_getxattr,
  .listxattr = cifs_listxattr,