[PATCH] ocfs2: use zero_user_page

Use zero_user_page() instead of open-coding it.

Signed-off-by: Nate Diller <nate.diller@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>

authored by Nate Diller and committed by Mark Fasheh 5c3c6bb7 1024c902

+1 -4
+1 -4
fs/ocfs2/aops.c
··· 238 238 * XXX sys_readahead() seems to get that wrong? 239 239 */ 240 240 if (start >= i_size_read(inode)) { 241 - char *addr = kmap(page); 242 - memset(addr, 0, PAGE_SIZE); 243 - flush_dcache_page(page); 244 - kunmap(page); 241 + zero_user_page(page, 0, PAGE_SIZE, KM_USER0); 245 242 SetPageUptodate(page); 246 243 ret = 0; 247 244 goto out_alloc;