X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffile_table.c;h=986ff4ed0a7cbf56d258b290635c32203284c565;hb=a70e65df8812c52252fa07a2eb92a46451a4427f;hp=6d27befe2d48ff5fbb13a45c5cd86618777bbbd9;hpb=dde0013782dbd09e1cc68ca03860f3a62b03cb34;p=linux-2.6 diff --git a/fs/file_table.c b/fs/file_table.c index 6d27befe2d..986ff4ed0a 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -83,6 +83,12 @@ int proc_nr_files(ctl_table *table, int write, struct file *filp, /* Find an unused file structure and return a pointer to it. * Returns NULL, if there are no more free file structures or * we run out of memory. + * + * Be very careful using this. You are responsible for + * getting write access to any mount that you might assign + * to this filp, if it is opened for write. If this is not + * done, you will imbalance int the mount's writer count + * and a warning at __fput() time. */ struct file *get_empty_filp(void) {