Re: [PATCH] generic_nvram: use inode lock not lock_kernel
From: Alan Cox
Date: Sat Jul 14 2007 - 04:42:24 EST
> Can we just use generic_file_llseek() in here? afacit that simply requires
> that i_size have the correct value. Does it?
Yes.
> Generic_file_llseek() uses file->f_mapping->host->i_mutex which is
> equivalent for this file, but we might as well be consistent.
Last time I used file->f_mapping->host-> for this in another driver Al
Viro asked me to use the f_path sequence instead. So I've always done
that since.
If it is correct to use the other then generic_file_llseek looks fine, if
not perhaps we need generic_device_llseek() ?
Al - there are many clones of these lseek methods - which should we be
using ?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/