aops.c (b7e56edba4b02f2079042c326a8cd72a44635817) aops.c (009d851837ab26cab18adda6169a813f70b0b21b)
1/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License version 2.
8 */

--- 1047 unchanged lines hidden (view full) ---

1056 * Call try_to_free_buffers() if the buffers in this page can be
1057 * released.
1058 *
1059 * Returns: 0
1060 */
1061
1062int gfs2_releasepage(struct page *page, gfp_t gfp_mask)
1063{
1/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License version 2.
8 */

--- 1047 unchanged lines hidden (view full) ---

1056 * Call try_to_free_buffers() if the buffers in this page can be
1057 * released.
1058 *
1059 * Returns: 0
1060 */
1061
1062int gfs2_releasepage(struct page *page, gfp_t gfp_mask)
1063{
1064 struct inode *aspace = page->mapping->host;
1065 struct gfs2_sbd *sdp = aspace->i_sb->s_fs_info;
1064 struct address_space *mapping = page->mapping;
1065 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping);
1066 struct buffer_head *bh, *head;
1067 struct gfs2_bufdata *bd;
1068
1069 if (!page_has_buffers(page))
1070 return 0;
1071
1072 gfs2_log_lock(sdp);
1073 head = bh = page_buffers(page);

--- 106 unchanged lines hidden ---
1066 struct buffer_head *bh, *head;
1067 struct gfs2_bufdata *bd;
1068
1069 if (!page_has_buffers(page))
1070 return 0;
1071
1072 gfs2_log_lock(sdp);
1073 head = bh = page_buffers(page);

--- 106 unchanged lines hidden ---