On Monday 23 June 2008 00:05:51 Michael Buesch wrote:
Well, actually, it can return a NULL pointer.
928 head = NULL;
929 offset = PAGE_SIZE;
930 while ((offset -= size) >= 0) {
...
949 }
950 return head;
So if size, which is a passed in as parameter, is > PAGE_SIZE it will return NULL.
The size parameter is calculated by doing
blocksize = 1 << inode->i_blkbits;
in an earlier function in the callchain.
So, well. I dunno what i_blkbits is. There's no docs in struct inode.
--
Greetings Michael.
--