mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
fs: configfs: don't return anything from drop_link
Documentation/filesystems/configfs/configfs.txt says: "When unlink(2) is called on the symbolic link, the source item is notified via the ->drop_link() method. Like the ->drop_item() method, this is a void function and cannot return failure." The ->drop_item() is indeed a void function, the ->drop_link() is actually not. This, together with the fact that the value of ->drop_link() is silently ignored suggests, that it is the ->drop_link() return type that should be corrected and changed to void. This patch changes drop_link() signature and all its users. Signed-off-by: Andrzej Pietrasiewicz <[email protected]> [hch: reverted reformatting of some code] Signed-off-by: Christoph Hellwig <[email protected]>
This commit is contained in:
parent
e5517c2a5a
commit
e16769d4bc
6 changed files with 17 additions and 37 deletions
|
|
@ -174,7 +174,7 @@ among other things. For that, it needs a type.
|
|||
void (*release)(struct config_item *);
|
||||
int (*allow_link)(struct config_item *src,
|
||||
struct config_item *target);
|
||||
int (*drop_link)(struct config_item *src,
|
||||
void (*drop_link)(struct config_item *src,
|
||||
struct config_item *target);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue